﻿using System;
using System.Globalization;
using AccessControl.Sida.Common;
using AccessControl.Sida.FingerPrintCollector.Login;


namespace AccessControl.Sida.FingerPrintCollector.Report
{
	public partial class XtraReportExamCard : DevExpress.XtraReports.UI.XtraReport
	{	
		public XtraReportExamCard(SidaDS sidaDS)
		{
			InitializeComponent();
			this.sidaDS.Merge(sidaDS);
		}

		private void XtraReportExamCard_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
		{
			var today = DateTime.Now;
			var pc = new PersianCalendar();
			xrLabelDate.Text = String.Format("{0}/{1}/{2}",pc.GetYear(today),pc.GetMonth(today),pc.GetDayOfMonth(today));
			xrLabelOprator.Text = LoginManager.CurrentFullName;
		}

	

	}
}
